import Nav from "../../components/Nav";
import Article from "../../components/Article";
import style from './style.module.less'
import { useState } from "react";


function Home() {
    const [keyChild,setKeyChild]=useState('')
    const upKeyword=(key:string)=>{
        setKeyChild(key)
    }
    return (
        <div className={style.wrap}>
            <div className={style.header}>
                <Nav upKeyword={upKeyword}/>
            </div>
            <div className={style.container}>
                <div className={style.list}>
                    <Article keyword={keyChild}/>
                </div>
            </div>
        </div>
    )
}
export default Home